package com.jiangchuang.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class RiceDetail {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer uid;
    @ApiModelProperty(value = "消费类型。0-新增菜品，1-新增外部菜品，2-新增类别，3-vip重置，4-开通二维码，5-新增饭搭子，6-签到，7-观看广告")
    private Integer type;
    @ApiModelProperty(value = "消费积分数")
    private Integer count;
    @ApiModelProperty(value = "消费后余额")
    private Integer remain;
    @ApiModelProperty(value = "消费时间")
    private String createTime;

    public RiceDetail(Integer uid, Integer type, Integer count, Integer remain){
        this.count = count;
        this.uid = uid;
        this.type = type;
        this.remain = remain;
    }
}
